Don't unshadow when the shadow l2 is the current used shadow table.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 8 Dec 2005 14:21:36 +0000 (15:21 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 8 Dec 2005 14:21:36 +0000 (15:21 +0100)
commitbc70813814bf808d64f0331c2e450662058e07a7
treedd09373b411ff1d100b709a37fb0439f2483b10f
parent064a4d414b4768dff82ae5bbd9e703b4442c214a
Don't unshadow when the shadow l2 is the current used shadow table.
Otherwise, when destroying the domain, if the current sl2 is unpinned
then the shadow page will be freed without accquire the shadow_lock.
This may also improve the performance due to avoiding uncessary
unshadow.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
xen/arch/x86/shadow.c
xen/arch/x86/shadow32.c